package com.minivision.fdiot.common;

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 需要鉴权的公共请求参数
 * @author hughzhao
 * @2018年3月1日
 */
@Setter
@Getter
@ToString
public class AuthParam extends RestParam {

  private static final long serialVersionUID = 4368603393100317596L;
  
  @ApiModelProperty(value = "应用标识，创建应用时平台返回",required = true)
  @NotBlank(message = "appKey must not be empty")
  protected String appKey;
  
  @ApiModelProperty(value = "时间戳，调用API时的毫秒数",required = true)
  @NotBlank(message = "timestamp must not be empty")
  protected String timestamp;

  /**
   * needPush2Device add by guming iot添加人脸方法中需要增加参数判断是否将该人脸推送到终端
   */
  @ApiModelProperty(value = "是否推送到设备")
  protected boolean needPush2Device;
  
}
